package io.github.wppli.domain.message.model.repository;

import io.github.wppli.domain.message.model.entity.PrivateMessageEntity;
import io.github.wppli.domain.message.model.entity.UserMessageEntity;

import java.util.List;

/**
 * 消息仓库接口
 * @author li--jiaqiang 2025−03−04
 */
public interface IMessageRepository {
    void saveMessageAsync(PrivateMessageEntity privateMessage);

    List<UserMessageEntity> queryUnreadMessages(Long receiverId);

    void markMessageRead(Long receiverId, Long senderId);
}